package yl.hs.bmipfull.pojo.finance;

import yl.hs.bmipfull.annotations.DBField;
import yl.hs.bmipfull.annotations.DBTable;
import yl.hs.bmipfull.pojo.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * ReceiptSettleMainEntity 采购结算单信息
 * @category 财务管理——采购结算单信息
 * @author 谢景广
 * @date 2022-01-18
 */
@DBTable(mapCode = "receipt_settle_main",disName = "采购结算单信息")
public class ReceiptSettleMainEntity extends BaseEntity {
    private Long id;

    @DBField(isSerialNumber = true,mapCode = "sn",snPrefix = "CGJS",disName = "结算编号")
    private String sn;
    @DBField(disName = "合同编号",mapCode = "contractSN")
    private String contractSN;
    @DBField(disName = "供应商编号",mapCode = "supplierSN")
    private String supplierSN;
    @DBField(disName = "供应商名称",mapCode = "supplierName")
    private String supplierName;
    private String supplierNamePY;
    @DBField(disName = "开始时间",mapCode = "startTime")
    private Date startTime;
    @DBField(disName = "结束时间",mapCode = "endTime")
    private Date endTime;
    @DBField(disName = "签约单位", mapCode = "contractingUnit")
    private String contractingUnit;
    private int year;
    private int month;
    private String settleWay;
    @DBField(disName = "结算时间",mapCode = "settleTime")
    private Date settleTime;
    /**
     * 导出次数
     */
    @DBField(disName = "导出次数", mapCode = "exportCount")
    private int exportCount;

    public int getExportCount() {
        return exportCount;
    }

    public void setExportCount(int exportCount) {
        this.exportCount = exportCount;
    }

    public String getContractingUnit() {
        return contractingUnit;
    }

    public void setContractingUnit(String contractingUnit) {
        this.contractingUnit = contractingUnit;
    }

    private BigDecimal previousAmount = new BigDecimal("0.00");
    private BigDecimal currentAmount = new BigDecimal("0.00");
    private BigDecimal totalAmount = new BigDecimal("0.00");
    private BigDecimal currentPayedAmount = new BigDecimal("0.00");
    private BigDecimal totalPayedAmount = new BigDecimal("0.00");
    private BigDecimal currentQuantity = new BigDecimal("0.00");
    private BigDecimal totalQuantity = new BigDecimal("0.00");
    private int currentOrderCount;
    private int totalOrderCount;
    private String contractRemark;
    private String remark;
    private short state;
    private String tags;
    private String organizationCode;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getContractSN() {
        return contractSN;
    }

    public void setContractSN(String contractSN) {
        this.contractSN = contractSN;
    }

    public String getSupplierSN() {
        return supplierSN;
    }

    public void setSupplierSN(String supplierSN) {
        this.supplierSN = supplierSN;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getSupplierNamePY() {
        return supplierNamePY;
    }

    public void setSupplierNamePY(String supplierNamePY) {
        this.supplierNamePY = supplierNamePY;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getSettleWay() {
        return settleWay;
    }

    public void setSettleWay(String settleWay) {
        this.settleWay = settleWay;
    }

    public Date getSettleTime() {
        return settleTime;
    }

    public void setSettleTime(Date settleTime) {
        this.settleTime = settleTime;
    }

    public BigDecimal getPreviousAmount() {
        return previousAmount;
    }

    public void setPreviousAmount(BigDecimal previousAmount) {
        if(previousAmount==null){return;}
        this.previousAmount = previousAmount;
    }

    public BigDecimal getCurrentAmount() {
        return currentAmount;
    }

    public void setCurrentAmount(BigDecimal currentAmount) {
        if(currentAmount==null){return;}
        this.currentAmount = currentAmount;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        if(totalAmount==null){return;}
        this.totalAmount = totalAmount;
    }

    public BigDecimal getCurrentPayedAmount() {
        return currentPayedAmount;
    }

    public void setCurrentPayedAmount(BigDecimal currentPayedAmount) {
        if(currentPayedAmount==null){return;}
        this.currentPayedAmount = currentPayedAmount;
    }

    public BigDecimal getTotalPayedAmount() {
        return totalPayedAmount;
    }

    public void setTotalPayedAmount(BigDecimal totalPayedAmount) {
        if(totalPayedAmount==null){return;}
        this.totalPayedAmount = totalPayedAmount;
    }

    public BigDecimal getCurrentQuantity() {
        return currentQuantity;
    }

    public void setCurrentQuantity(BigDecimal currentQuantity) {
        if(currentQuantity==null){return;}
        this.currentQuantity = currentQuantity;
    }

    public BigDecimal getTotalQuantity() {
        return totalQuantity;
    }

    public void setTotalQuantity(BigDecimal totalQuantity) {
        if(totalQuantity==null){return;}
        this.totalQuantity = totalQuantity;
    }

    public int getCurrentOrderCount() {
        return currentOrderCount;
    }

    public void setCurrentOrderCount(int currentOrderCount) {
        this.currentOrderCount = currentOrderCount;
    }

    public int getTotalOrderCount() {
        return totalOrderCount;
    }

    public void setTotalOrderCount(int totalOrderCount) {
        this.totalOrderCount = totalOrderCount;
    }

    public String getContractRemark() {
        return contractRemark;
    }

    public void setContractRemark(String contractRemark) {
        this.contractRemark = contractRemark;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public short getState() {
        return state;
    }

    public void setState(short state) {
        this.state = state;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public int getMonth() {
        return month;
    }

    public void setMonth(int month) {
        this.month = month;
    }

    public String getOrganizationCode() {
        return organizationCode;
    }

    public void setOrganizationCode(String organizationCode) {
        this.organizationCode = organizationCode;
    }
}
